// 统一管理里面的api
import request from '@/utils/request'

// method: 'POST',
// admin/goods/catAndBrand 商品分类
export const goodsCatAndBrand = (params) => {
  return request({
    url: 'admin/goods/catAndBrand',
    method: 'GET',
    params
  })
}
// admin/goods/create 上架商品
export const goodsCreate = (data) => {
  return request({
    url: 'admin/goods/create',
    method: 'POST',
    data
  })
}
// admin/goods/detail 下拉
export const goodsDetail = (params) => {
  return request({
    url: 'admin/goods/detail',
    method: 'GET',
    params
  })
}
// admin/storage/create 上传图片
export const storageCreate = (data) => {
  return request({
    url: 'admin/storage/create',
    method: 'POST',
    data
  })
}
